package com.simen.hellobytes.socket;

import com.simen.hellobytes.socket.helper.DefaultTransform;
import com.simen.hellobytes.socket.helper.Transform;

/**
 * @author Created by Simen.
 * @date 创建日期 2018/5/30 10:11
 * @modify 修改者 Simen
 */
public class AbstractSocketClient extends AbstractSocket {

    protected boolean receiveBackMsg = false;
    protected byte[] recBytes;

    protected Transform transform = null;

    public void initTransform(){
        transform = new DefaultTransform();
    }

    public boolean isReceiveBackMsg() {
        return receiveBackMsg;
    }

    public void setReceiveBackMsg(boolean receiveBackMsg) {
        this.receiveBackMsg = receiveBackMsg;
    }

    public void setTransform(Transform transform) {
        this.transform = transform;
    }

    public Transform getTransform() {
        return transform;
    }

    public byte[] getRecBytes() {
        return recBytes;
    }

    public void setRecBytes(byte[] recBytes) {
        this.recBytes = recBytes;
    }
}
